package com.briup.es.domain.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 用于修改密码时的dto
 */
@Data
public class UpdatePasswordDto {
    @NotBlank(message = "初始密码必须写明")
    private String oldPassword;
    @NotBlank(message = "新密码必须写明")
    @Length(min = 5, max = 10, message = "新密码长度必须在[5,10]之间")
    private String newPassword;
}
